/* 
 * File:   Pipe.h
 * Author: maxds
 *
 * Created on 5 août 2011, 00:00
 */

#ifndef PIPE_H
#define	PIPE_H
#include <unistd.h>
#include <cstdio>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
class Pipe {
public:
    /**
     * \brief
     * @return 
     */
    static int getPipeIn();
    
    /**
     * \brief
     * @return 
     */
    static int getPipeOut();
    
    /**
     * \brief
     */
    static int initPipe();
    
    /**
     * \brief 
     */
    static int finitPipe();
    
private:
    static int pipe_fds[2];
    static mode_t mode;
    static int fifo_id;
};



#endif	/* PIPE_H */

